Fix fns-tests-collate-strings failure with musl
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 27 Feb 2025 18:57:19 +0000 (10:57 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 27 Feb 2025 18:57:19 +0000 (10:57 -0800)
* test/src/fns-tests.el (fns-tests-collate-strings):
Don’t assume "en_XY.UTF-8", or any particular string,
is an invalid locale, as they all seem to be valid in musl.
Instead, simply test that a non-string is invalid.
(Bug#76550)

test/src/fns-tests.el

index 9e134c24e058b7c2971d7d1dcaa579c654549755..2ca67f14539f2ab1d65885fa8c32e346e0264430 100644 (file)
   (should (string-collate-equalp "xyzzy" "XYZZY" nil t))
 
   ;; Locale must be valid.
-  (should-error (string-collate-equalp "xyzzy" "xyzzy" "en_XY.UTF-8")))
+  (should-error (string-collate-equalp "xyzzy" "xyzzy" 'not-a-locale)))
 
 ;; There must be a check for valid codepoints.  (Check not implemented yet)
 ;  (should-error